package com.wing.ext.domain;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.wing.common.util.DateUtils;


@Entity
@Table(name = "ext_information")
public class  Information {
	public static String INFORMATIONROOT = "ROOT";
	public static int STATUS_DISABLE = -1;

  	@Id
  	@Column(name = "id")
  	private String id;
  	@Column(name = "pid")
  	private String pid;
  	@Column(name = "site_id")
  	private String site_id;
  	@Column(name = "creator")
  	private String creator;
  	@Column(name = "count")
  	private Integer count;
  	@Column(name = "orderno")
  	private Integer orderno;
  	@Column(name = "totop")
  	private Integer totop;
  	@Column(name = "tohome")
  	private Integer tohome;
  	@Column(name = "title")
  	private String title;
  	@Column(name = "content")
  	private String content;
  	@Column(name="type_id")
	private String type_id;
  	@Column(name="type_id2")
	private String type_id2;
  	@Column(name="scope")
  	private String scope;
  	@Column(name = "status")
  	private Integer status;
	@Column(name="createtime")
	private Date createtime;
  
	private String sentName;
	public void  setId(String id){
  		this.id = id;
  	}
	public String getId(){
  		return this. id; 
  	}
  	public void  setPid(String pid){
  		this.pid = pid;
  	}
	public String getPid(){
  		return this. pid; 
  	}
  	public void  setSite_id(String site_id){
  		this.site_id = site_id;
  	}
	public String getSite_id(){
  		return this. site_id; 
  	}
  	public void  setCreator(String creator){
  		this.creator = creator;
  	}
	public String getCreator(){
  		return this. creator; 
  	}
  	public void  setCount(Integer count){
  		this.count = count;
  	}
	public Integer getCount(){
  		return this. count; 
  	}
  	public void  setOrderno(Integer orderno){
  		this.orderno = orderno;
  	}
	public Integer getOrderno(){
  		return this. orderno; 
  	}
  	public void  setTotop(Integer totop){
  		this.totop = totop;
  	}
	public Integer getTotop(){
  		return this. totop; 
  	}
  	public void  setTohome(Integer tohome){
  		this.tohome = tohome;
  	}
	public Integer getTohome(){
  		return this. tohome; 
  	}
  	public void  setTitle(String title){
  		this.title = title;
  	}
	public String getTitle(){
  		return this. title; 
  	}
  	public void  setContent(String content){
  		this.content = content;
  	}
	public String getContent(){
  		return this. content; 
  	}
  	public void  setType_id(String type_id){
  		this.type_id = type_id;
  	}
	public String getType_id(){
  		return this. type_id; 
  	}
  	public void  setScope(String scope){
  		this.scope = scope;
  	}
	public String getScope(){
  		return this. scope; 
  	}
  	public void  setStatus(Integer status){
  		this.status = status;
  	}
	public Integer getStatus(){
  		return this. status; 
  	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getCreatetimev() {
		return DateUtils.datetimeToString(createtime);
	}
	public void setCreatetimev(String createtime) {
		this.setCreatetime(DateUtils.stringToDatetime(createtime));
	}
	public String getType_id2() {
		return type_id2;
	}
	public void setType_id2(String type_id2) {
		this.type_id2 = type_id2;
	}
	public String getSentName() {
		return sentName;
	}
	public void setSentName(String sentName) {
		this.sentName = sentName;
	}

}
